package com.msh.artascope.devcloud.client.enums.biz;

import com.msh.frame.client.define.StringDef;
import com.msh.frame.interfaces.IValueDescEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum DomainConfigHttpFlagEnum implements IValueDescEnum {
  ENABLE(1, "开启"),
  DISABLE(0, "关闭"),
  ;


  private final Integer value;
  private final String desc;

  public static String toDesc(Integer value) {
    for (DomainConfigHttpFlagEnum e : values()) {
      if (e.getValue().equals(value)) {
        return e.desc;
      }
    }
    return StringDef.EMPTY;
  }
}
